<template>
  <el-container>
    <el-header height="64px">
      <Header />
      <InfoDrawer ref="infoDrawer"></InfoDrawer>
    </el-header>
    <main>
      <router-view></router-view>
    </main>
    <el-footer height="50px">
      <Footer />
    </el-footer>
  </el-container>
</template>

<script>
import Header from "@/components/frontend/Header.vue";
import Footer from "@/components/frontend/Footer.vue";
import InfoDrawer from "@/components/frontend/InfoDrawer";
export default {
  name: "Layout",
  components: {
    Header,
    Footer,
    InfoDrawer
  },
  updated() {
    window.scrollTo(0, 0);
  }
};
</script>

<style lang="scss" scoped>
main {
  min-height: 90vh;
  background: url("../../assets/img/bg.png") fixed;
  // background-color: #fafafb;
}

@media screen and (max-width: 576px) {
  .el-header {
    padding-left: 0;
  }
}
</style>
